'use strict';

const { validatorNo } = require('../common/index');

module.exports = {
  name: [
    { required: true, message: '真实姓名必填' },
    { type: 'string', message: '真实姓名必须为字符串' },
    { min: 0, max: 20, message: '真实姓名长度最大20字' },
  ],
  No: [
    { required: true, message: '身份证号必填' },
    { type: 'string', message: '身份证号必须为字符串' },
    { validator: validatorNo() },
  ],
  isMy: [
    { required: true, message: '是否为自己必填' },
    { type: 'boolean', message: '格式错误' },
  ],
};
